package edu.ucdavis.gwt.gis.client.toolbar.menu;

import com.google.gwt.user.client.ui.Image;

import edu.ucdavis.gwt.gis.client.CompatibilityTester;
import edu.ucdavis.gwt.gis.client.toolbar.button.ExportMapButton;
import edu.ucdavis.gwt.gis.client.toolbar.button.MapLinkButton;


public class ExportMenu extends ToolbarMenu {

	private MapLinkButton mapLink = new MapLinkButton();
	
	public ExportMenu() {
		if( CompatibilityTester.isCorsSupported() ) {
			addItem(new ExportMapButton());
		}
		addItem(mapLink);
	}
	
	@Override
	public Image getIcon() {
		return null;
	}

	@Override
	public String getText() {
		return "Share/Export";
	}

}
